<!DOCTYPE html>
<html lang="en">
  <head>
    <title>TextDrawing Protocol Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Protocol/TextDrawing" class="dashAnchor"></a>
    <a title="TextDrawing Protocol Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">SwiftFortuneWheel 1.1.0 Docs</a> (79% documented)</p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">SwiftFortuneWheel Reference</a>
        <img id="carat" src="../img/carat.png" />
        TextDrawing Protocol Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/NoClippingLayer.html">NoClippingLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/PinImageView.html">PinImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SpinButton.html">SpinButton</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SpinningWheelAnimator.html">SpinningWheelAnimator</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/SwiftFortuneWheel.html">SwiftFortuneWheel</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/TTUtils.html">TTUtils</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WheelLayer.html">WheelLayer</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WheelView.html">WheelView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Extensions/Array.html">Array</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/CGRect.html">CGRect</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/CGSize.html">CGSize</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSBezierPath.html">NSBezierPath</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSButton.html">NSButton</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSFont.html">NSFont</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSImage.html">NSImage</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSImageView.html">NSImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSScreen.html">NSScreen</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/NSView.html">NSView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/SFWColor.html">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/SFWFont.html">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/SFWImage.html">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/String.html">String</a>
              </li>
              <li class="nav-group-task">
                <a href="../Extensions/UIView.html">UIView</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Functions.html">Functions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Functions.html#/UIGraphicsGetCurrentContext()">UIGraphicsGetCurrentContext()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/UIGraphicsPopContext()">UIGraphicsPopContext()</a>
              </li>
              <li class="nav-group-task">
                <a href="../Functions.html#/UIGraphicsPushContext(_:)">UIGraphicsPushContext(_:)</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Protocols/CurveTextDrawing.html">CurveTextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ImageDrawing.html">ImageDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/ShapeDrawing.html">ShapeDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SliceCalculating.html">SliceCalculating</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SliceDrawing.html">SliceDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SpinningAnimatable.html">SpinningAnimatable</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/SpinningAnimatorProtocol.html">SpinningAnimatorProtocol</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/TextDrawing.html">TextDrawing</a>
              </li>
              <li class="nav-group-task">
                <a href="../Protocols/WheelMathCalculating.html">WheelMathCalculating</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Structs/Calc.html">Calc</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/ImagePreferences.html">ImagePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/LinePreferences.html">LinePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration.html">SFWConfiguration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/WheelPreferences.html">– WheelPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/CirclePreferences.html">– CirclePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/SlicePreferences.html">– SlicePreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/SpinButtonPreferences.html">– SpinButtonPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/PinImageViewPreferences.html">– PinImageViewPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/Position.html">– Position</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/Margins.html">– Margins</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/ColorType.html">– ColorType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/AnchorImage.html">– AnchorImage</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/SFWConfiguration/ContentMode.html">– ContentMode</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/Slice.html">Slice</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/Slice/ContentType.html">– ContentType</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TextPreferences.html">TextPreferences</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TextPreferences/Orientation.html">– Orientation</a>
              </li>
              <li class="nav-group-task">
                <a href="../Structs/TextPreferences/LineBreakMode.html">– LineBreakMode</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Typealiases.html#/SFWColor">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:17SwiftFortuneWheel8SFWColora">SFWColor</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/SFWControl">SFWControl</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:17SwiftFortuneWheel10SFWControla">SFWControl</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/SFWEdgeInsets">SFWEdgeInsets</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:17SwiftFortuneWheel13SFWEdgeInsetsa">SFWEdgeInsets</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/SFWFont">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:17SwiftFortuneWheel7SFWFonta">SFWFont</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/SFWImage">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/s:17SwiftFortuneWheel8SFWImagea">SFWImage</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/UIBezierPath">UIBezierPath</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/UIButton">UIButton</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/UIImageView">UIImageView</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/UIScreen">UIScreen</a>
              </li>
              <li class="nav-group-task">
                <a href="../Typealiases.html#/UIView">UIView</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>TextDrawing</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight swift"><code><span class="kd">protocol</span> <span class="kt">TextDrawing</span> <span class="p">:</span> <span class="kt"><a href="../Protocols/CurveTextDrawing.html">CurveTextDrawing</a></span></code></pre>

                </div>
              </div>
            <p>Curved text drawing protocol</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel11TextDrawingPAAE10drawCurved4text2in11preferences8rotation5index9topOffset6radius11sliceDegree025contextPositionCorrectionnQ07margins12CoreGraphics7CGFloatVSS_So12CGContextRefaAA0D11PreferencesVAQSiA4qA16SFWConfigurationV7MarginsVtF"></a>
                    <a name="//apple_ref/swift/Method/drawCurved(text:in:preferences:rotation:index:topOffset:radius:sliceDegree:contextPositionCorrectionOffsetDegree:margins:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel11TextDrawingPAAE10drawCurved4text2in11preferences8rotation5index9topOffset6radius11sliceDegree025contextPositionCorrectionnQ07margins12CoreGraphics7CGFloatVSS_So12CGContextRefaAA0D11PreferencesVAQSiA4qA16SFWConfigurationV7MarginsVtF">drawCurved(text:<wbr>in:<wbr>preferences:<wbr>rotation:<wbr>index:<wbr>topOffset:<wbr>radius:<wbr>sliceDegree:<wbr>contextPositionCorrectionOffsetDegree:<wbr>margins:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Draws curved text</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">drawCurved</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="k">in</span> <span class="nv">context</span><span class="p">:</span> <span class="kt">CGContext</span><span class="p">,</span> <span class="nv">preferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/TextPreferences.html">TextPreferences</a></span><span class="p">,</span> <span class="nv">rotation</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">index</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">topOffset</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">radius</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">sliceDegree</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">contextPositionCorrectionOffsetDegree</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">margins</span><span class="p">:</span> <span class="kt"><a href="../Structs/SFWConfiguration.html">SFWConfiguration</a></span><span class="o">.</span><span class="kt">Margins</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CGFloat</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>text</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>text</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>context</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>context where to draw</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>preferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>text preferences</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>rotation</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>rotation degree</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>index</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>index</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>topOffset</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>top offset</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>radius</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>radius</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>sliceDegree</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>slice degree</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>contextPositionCorrectionOffsetDegree</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Context position correction offset degree</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>margins</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>content margins</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Height of the drawn text</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel11TextDrawingPAAE14drawHorizontal4text2in11preferences8rotation5index9topOffset6radius11sliceDegree7margins12CoreGraphics7CGFloatVSS_So12CGContextRefaAA0D11PreferencesVAPSiA3pA16SFWConfigurationV7MarginsVtF"></a>
                    <a name="//apple_ref/swift/Method/drawHorizontal(text:in:preferences:rotation:index:topOffset:radius:sliceDegree:margins:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel11TextDrawingPAAE14drawHorizontal4text2in11preferences8rotation5index9topOffset6radius11sliceDegree7margins12CoreGraphics7CGFloatVSS_So12CGContextRefaAA0D11PreferencesVAPSiA3pA16SFWConfigurationV7MarginsVtF">drawHorizontal(text:<wbr>in:<wbr>preferences:<wbr>rotation:<wbr>index:<wbr>topOffset:<wbr>radius:<wbr>sliceDegree:<wbr>margins:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Draws text</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">drawHorizontal</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="k">in</span> <span class="nv">context</span><span class="p">:</span> <span class="kt">CGContext</span><span class="p">,</span> <span class="nv">preferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/TextPreferences.html">TextPreferences</a></span><span class="p">,</span> <span class="nv">rotation</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">index</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">topOffset</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">radius</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">sliceDegree</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">margins</span><span class="p">:</span> <span class="kt"><a href="../Structs/SFWConfiguration.html">SFWConfiguration</a></span><span class="o">.</span><span class="kt">Margins</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CGFloat</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>text</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>text</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>context</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>context where to draw</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>preferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>text preferences</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>rotation</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>rotation degree</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>index</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>index</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>topOffset</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>top offset</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>radius</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>radius</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>sliceDegree</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>slice degree</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>margins</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>content margins</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Height of the drawn text</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:17SwiftFortuneWheel11TextDrawingPAAE12drawVertical4text2in11preferences8rotation5index9topOffset6radius11sliceDegree7margins12CoreGraphics7CGFloatVSS_So12CGContextRefaAA0D11PreferencesVAPSiA3pA16SFWConfigurationV7MarginsVtF"></a>
                    <a name="//apple_ref/swift/Method/drawVertical(text:in:preferences:rotation:index:topOffset:radius:sliceDegree:margins:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:17SwiftFortuneWheel11TextDrawingPAAE12drawVertical4text2in11preferences8rotation5index9topOffset6radius11sliceDegree7margins12CoreGraphics7CGFloatVSS_So12CGContextRefaAA0D11PreferencesVAPSiA3pA16SFWConfigurationV7MarginsVtF">drawVertical(text:<wbr>in:<wbr>preferences:<wbr>rotation:<wbr>index:<wbr>topOffset:<wbr>radius:<wbr>sliceDegree:<wbr>margins:<wbr>)</a>
                    </code>
                      <span class="declaration-note">
                        Extension method
                      </span>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Draws text</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">func</span> <span class="nf">drawVertical</span><span class="p">(</span><span class="nv">text</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="k">in</span> <span class="nv">context</span><span class="p">:</span> <span class="kt">CGContext</span><span class="p">,</span> <span class="nv">preferences</span><span class="p">:</span> <span class="kt"><a href="../Structs/TextPreferences.html">TextPreferences</a></span><span class="p">,</span> <span class="nv">rotation</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">index</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">topOffset</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">radius</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">sliceDegree</span><span class="p">:</span> <span class="kt">CGFloat</span><span class="p">,</span> <span class="nv">margins</span><span class="p">:</span> <span class="kt"><a href="../Structs/SFWConfiguration.html">SFWConfiguration</a></span><span class="o">.</span><span class="kt">Margins</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">CGFloat</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>text</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>text</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>context</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>context where to draw</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>preferences</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>text preferences</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>rotation</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>rotation degree</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>index</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>index</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>topOffset</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>top offset</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>radius</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>radius</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>sliceDegree</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>slice degree</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>margins</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>content margins</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>Height of the drawn text</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://github.com/sh-khashimov/SwiftFortuneWheel.git" target="_blank" rel="external">Sherzod Khashimov</a>. All rights reserved. (Last updated: 2020-07-22)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.4</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
